package com.fly.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.math.BigDecimal;

/**
 *
 * @author ${author}
 * @date ${date}
 */
@Getter
@Setter
@ApiModel(description = "${remarks}搜索参数")
public class ${modelNameUpperCamel}Param implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
<#list modeListDetails as item>
    <#if "${item.type}"?contains("bigint")>
        @ApiModelProperty(value = "${item.remark}")
        private Long ${item.name};
    <#elseif "${item.type}"?contains("int")>
        @ApiModelProperty(value = "${item.remark}")
        private Integer ${item.name};
    <#elseif "${item.type}"?contains("varchar")>
        @ApiModelProperty(value = "${item.remark}")
        private String ${item.name};
    <#elseif "${item.type}"?contains("decimal")>
        @ApiModelProperty(value = "${item.remark}")
        private BigDecimal ${item.name};
    <#elseif "${item.type}"?contains("datetime")>
        @ApiModelProperty(value = "${item.remark}")
        private LocalDateTime ${item.name};
    <#else>

    </#if>
</#list>

}
